const axios = require('axios')
const request =axios.create({
    timeout: 30 * 1000
})

request.interceptors.response.use(response => {
    return response.data
}, error => {
    return Promise.reject(error)
})

module.exports = request
